package cn.iocoder.yudao.module.reading.controller.app.community.vo.comment;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 社区评论 Response VO
 *
 * @author 芋道源码
 */
@Schema(description = "用户 APP - 社区评论 Response VO")
@Data
public class CommentRespVO {

    @Schema(description = "评论ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long id;

    @Schema(description = "帖子ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long postId;

    @Schema(description = "评论用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long userId;

    @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "小明")
    private String userNickname;

    @Schema(description = "用户头像", example = "https://example.com/avatar.jpg")
    private String userAvatar;

    @Schema(description = "父评论ID", example = "1")
    private Long parentId;

    @Schema(description = "评论内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "这本书真的很不错！")
    private String content;

    @Schema(description = "点赞数", requiredMode = Schema.RequiredMode.REQUIRED, example = "5")
    private Integer likeCount;

    @Schema(description = "回复数", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    private Integer replyCount;

    @Schema(description = "当前用户是否已点赞", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
    private Boolean isLiked;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "2025-01-01T08:00:00")
    private LocalDateTime createTime;

}
